package com.yakuj3.android.comptadroid;

public class Model {

	private int icon;
    private String title;
    private String counter;
 
    public String getCounter() {
		return counter;
	}
	public void setCounter(String counter) {
		this.counter = counter;
	}

	private boolean isGroupHeader = false;
	private boolean hasCounter = false;
 
    public Model(String title) {
        this(-1,title);
        isGroupHeader = true;
    }
    public int getIcon() {
		return icon;
	}
	public void setIcon(int icon) {
		this.icon = icon;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public boolean isGroupHeader() {
		return isGroupHeader;
	}
	public boolean hasCounter()
	{
		return hasCounter;
	}
	public void setHasCounter(boolean b)
	{
		this.hasCounter = b;
	}
	public void setGroupHeader(boolean isGroupHeader) {
		this.isGroupHeader = isGroupHeader;
	}
	public Model(int icon, String title) {
        super();
        this.icon = icon;
        this.title = title;
    }
	
	public Model(int icon, String title, String counter)
	{
		this(icon, title);
		this.counter = counter;
		this.hasCounter = true;
	}
}
